﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _EF调用SqlHelper
{
    class Program
    {
        static void Main(string[] args)
        {
            using (BaseContext db = new BaseContext("DbConn2"))
            {
                string DbConn = db.Database.Connection.ConnectionString;
                string sql = "Select * from T_Person";
                DataTable dt = SqlHelper.GetDataTable(DbConn, CommandType.Text, sql);
                Console.WriteLine("成功");
            }
        }
    }
}
